{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "48abd9a7",
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "99 bottles of beer on the wall\n",
      "99 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "98 bottles of beer on the wall\n",
      "98 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "97 bottles of beer on the wall\n",
      "97 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "96 bottles of beer on the wall\n",
      "96 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "95 bottles of beer on the wall\n",
      "95 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "94 bottles of beer on the wall\n",
      "94 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "93 bottles of beer on the wall\n",
      "93 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "92 bottles of beer on the wall\n",
      "92 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "91 bottles of beer on the wall\n",
      "91 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "90 bottles of beer on the wall\n",
      "90 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "89 bottles of beer on the wall\n",
      "89 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "88 bottles of beer on the wall\n",
      "88 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "87 bottles of beer on the wall\n",
      "87 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "86 bottles of beer on the wall\n",
      "86 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "85 bottles of beer on the wall\n",
      "85 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "84 bottles of beer on the wall\n",
      "84 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "83 bottles of beer on the wall\n",
      "83 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "82 bottles of beer on the wall\n",
      "82 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "81 bottles of beer on the wall\n",
      "81 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "80 bottles of beer on the wall\n",
      "80 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "79 bottles of beer on the wall\n",
      "79 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "78 bottles of beer on the wall\n",
      "78 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "77 bottles of beer on the wall\n",
      "77 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "76 bottles of beer on the wall\n",
      "76 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "75 bottles of beer on the wall\n",
      "75 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "74 bottles of beer on the wall\n",
      "74 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "73 bottles of beer on the wall\n",
      "73 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "72 bottles of beer on the wall\n",
      "72 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "71 bottles of beer on the wall\n",
      "71 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "70 bottles of beer on the wall\n",
      "70 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "69 bottles of beer on the wall\n",
      "69 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "68 bottles of beer on the wall\n",
      "68 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "67 bottles of beer on the wall\n",
      "67 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "66 bottles of beer on the wall\n",
      "66 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "65 bottles of beer on the wall\n",
      "65 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "64 bottles of beer on the wall\n",
      "64 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "63 bottles of beer on the wall\n",
      "63 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "62 bottles of beer on the wall\n",
      "62 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "61 bottles of beer on the wall\n",
      "61 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "60 bottles of beer on the wall\n",
      "60 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "59 bottles of beer on the wall\n",
      "59 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "58 bottles of beer on the wall\n",
      "58 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "57 bottles of beer on the wall\n",
      "57 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "56 bottles of beer on the wall\n",
      "56 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "55 bottles of beer on the wall\n",
      "55 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "54 bottles of beer on the wall\n",
      "54 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "53 bottles of beer on the wall\n",
      "53 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "52 bottles of beer on the wall\n",
      "52 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "51 bottles of beer on the wall\n",
      "51 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "50 bottles of beer on the wall\n",
      "50 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "49 bottles of beer on the wall\n",
      "49 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "48 bottles of beer on the wall\n",
      "48 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "47 bottles of beer on the wall\n",
      "47 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "46 bottles of beer on the wall\n",
      "46 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "45 bottles of beer on the wall\n",
      "45 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "44 bottles of beer on the wall\n",
      "44 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "43 bottles of beer on the wall\n",
      "43 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "42 bottles of beer on the wall\n",
      "42 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "41 bottles of beer on the wall\n",
      "41 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "40 bottles of beer on the wall\n",
      "40 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "39 bottles of beer on the wall\n",
      "39 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "38 bottles of beer on the wall\n",
      "38 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "37 bottles of beer on the wall\n",
      "37 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "36 bottles of beer on the wall\n",
      "36 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "35 bottles of beer on the wall\n",
      "35 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "34 bottles of beer on the wall\n",
      "34 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "33 bottles of beer on the wall\n",
      "33 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "32 bottles of beer on the wall\n",
      "32 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "31 bottles of beer on the wall\n",
      "31 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "30 bottles of beer on the wall\n",
      "30 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "29 bottles of beer on the wall\n",
      "29 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "28 bottles of beer on the wall\n",
      "28 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "27 bottles of beer on the wall\n",
      "27 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "26 bottles of beer on the wall\n",
      "26 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "25 bottles of beer on the wall\n",
      "25 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "24 bottles of beer on the wall\n",
      "24 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "23 bottles of beer on the wall\n",
      "23 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "22 bottles of beer on the wall\n",
      "22 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "21 bottles of beer on the wall\n",
      "21 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "20 bottles of beer on the wall\n",
      "20 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "19 bottles of beer on the wall\n",
      "19 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "18 bottles of beer on the wall\n",
      "18 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "17 bottles of beer on the wall\n",
      "17 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "16 bottles of beer on the wall\n",
      "16 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "15 bottles of beer on the wall\n",
      "15 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "14 bottles of beer on the wall\n",
      "14 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "13 bottles of beer on the wall\n",
      "13 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "12 bottles of beer on the wall\n",
      "12 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "11 bottles of beer on the wall\n",
      "11 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "10 bottles of beer on the wall\n",
      "10 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "9 bottles of beer on the wall\n",
      "9 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "8 bottles of beer on the wall\n",
      "8 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "7 bottles of beer on the wall\n",
      "7 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "6 bottles of beer on the wall\n",
      "6 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "5 bottles of beer on the wall\n",
      "5 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "4 bottles of beer on the wall\n",
      "4 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "3 bottles of beer on the wall\n",
      "3 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "\n",
      "2 bottles of beer on the wall\n",
      "2 bottles of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "1 bottle of beer on the wall\n",
      "\n",
      "1 bottle of beer on the wall\n",
      "1 bottle of beer\n",
      "Take one down.\n",
      "Pass it around\n",
      "没有足够的bottles在wall上了\n",
      "\n"
     ]
    }
   ],
   "source": [
    "word =\"bottles\"\n",
    "for beer_num in range(99,0,-1):\n",
    "    print(beer_num,word,\"of beer on the wall\")\n",
    "    print(beer_num,word,\"of beer\")\n",
    "    print(\"Take one down.\")\n",
    "    print(\"Pass it around\")\n",
    "    #1. 拿走一瓶\n",
    "    if beer_num == 1:\n",
    "        print(\"没有足够的bottles在wall上了\")\n",
    "    # 2. 还有足够的啤酒\n",
    "    else:\n",
    "        new_num = beer_num - 1\n",
    "\n",
    "        if new_num == 1:\n",
    "            word = \"bottle\"\n",
    "            print(new_num,word,\"of beer on the wall\")\n",
    "    #空行\n",
    "    print( )\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "92255d35",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 注释的意义：\n",
    "# 1.可以记录我们的代码过程意义 （一般循环、条件判断、函数、对象、类都要有自己的描述，对变量作描述）\n",
    "# 2.可以忽略一部分代码，跳过该部分的代码\n",
    "\n",
    "\n",
    "# A. 单行注释： #\n",
    "# B. 多行注释：'''注释内容''' \"\"\"注释内容\"\"\"\n",
    "# C. 多行注释可以当做 str 赋值给变量\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "66a10148",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "请输入你的账号：junk\n",
      "请输入你的密码：123456\n",
      "欢迎 junk 登录系统使用~\n"
     ]
    }
   ],
   "source": [
    "# 登录系统\n",
    "user_date = \"junk\"\n",
    "password_date = \"123456\"\n",
    "\n",
    "count = 3\n",
    "while True:\n",
    "    count -= 1\n",
    "    # 用户输入数据\n",
    "    username = input(\"请输入你的账号：\")\n",
    "    password = input(\"请输入你的密码：\")\n",
    "# 用户输入的数据 VS 数据库\n",
    "# 1.先输入账号\n",
    "    if user_date == username:\n",
    "        if password_date == password:\n",
    "            print(\"欢迎\", username, \"登录系统使用~\")\n",
    "            break\n",
    "        else:\n",
    "            if count == 0:\n",
    "                print(\"您多次输入错误密码，请5分钟后再重试\")\n",
    "                break\n",
    "            else:\n",
    "                print(\"您输入的账号或者密码不正确，请重新输入，您还有\", count, \"次机会\")\n",
    "    else:\n",
    "        if count == 0:\n",
    "            print(\"您多次输入错误密码，请5分钟后再重试 \")\n",
    "            break\n",
    "        else:\n",
    "            print(\"您输入的账号或者密码不正确，请重新输入,您还有\", count, \"次机会\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "be239a72",
   "metadata": {},
   "outputs": [
    {
     "ename": "IndentationError",
     "evalue": "unindent does not match any outer indentation level (<tokenize>, line 51)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;36m  File \u001b[1;32m\"<tokenize>\"\u001b[1;36m, line \u001b[1;32m51\u001b[0m\n\u001b[1;33m    else:\u001b[0m\n\u001b[1;37m    ^\u001b[0m\n\u001b[1;31mIndentationError\u001b[0m\u001b[1;31m:\u001b[0m unindent does not match any outer indentation level\n"
     ]
    }
   ],
   "source": [
    "#课程表实验一\n",
    "\n",
    "# Author:Shaojun\n",
    "# Time：09_23\n",
    "\n",
    "# 登录系统\n",
    "user_date = \"junk\"\n",
    "user_date_vip =\"chao\"\n",
    "password_date = \"112233\"\n",
    "password_date_vip = \"123456\"\n",
    "\n",
    "count = 3\n",
    "while True:\n",
    "    count -= 1\n",
    "    username = input(\"请输入你的账号：\")\n",
    "    password = input(\"请输入你的密码：\")\n",
    "\n",
    "    if username == user_date or user_date_vip:\n",
    "        if username == user_date:\n",
    "            if password == password_date:\n",
    "                print (\"欢迎普通用户\",username,\"登录系统使用~\")\n",
    "                break\n",
    "            else:\n",
    "                if count == 0:\n",
    "                    print(\"您多次输入错误密码，请5分钟后再重试\")\n",
    "                    break\n",
    "                else:\n",
    "                    print(\"您输入的账号或者密码不正确，请重新输入，您还有\",count,\"次机会\")\n",
    "        else:\n",
    "            if username == user_date_vip:\n",
    "                if password == password_date_vip:\n",
    "                    print(\"欢迎尊贵的vip用户\", username, \"登录系统使用~\")\n",
    "                    break\n",
    "                if count == 0:\n",
    "                    print(\"您多次输入错误密码，请5分钟后再重试 \")\n",
    "                    break\n",
    "                else:\n",
    "                    print(\"您输入的账号或者密码不正确，请重新输入,您还有\",count,\"次机会\")\n",
    "\n",
    "\n",
    "            else:\n",
    "                if count == 0:\n",
    "                    print(\"您多次输入错误密码，请5分钟后再重试\")\n",
    "                    break\n",
    "                else:\n",
    "                    print(\"您输入的账号或者密码不正确，请重新输入，您还有\", count, \"次机会\")\n",
    "        else:\n",
    "            if count == 0:\n",
    "                    print(\"您多次输入错误密码，请5分钟后再重试 \")\n",
    "                    break\n",
    "                else:\n",
    "                    print(\"您输入的账号或者密码不正确，请重新输入,您还有\",count,\"次机会\")\n",
    "                    break\n",
    "\n",
    "'''\n",
    "    if username == user_date:\n",
    "        print( )\n",
    "        print(\"普通用户junk，你今天有三次查询课表的机会\")\n",
    "        print(\"您可以选择用日期查询一天的课程，也可以用实际时间查询改日之后的课程\")\n",
    "\n",
    "    if username == user_date_vip:\n",
    "        print()\n",
    "        print(\"尊贵的VIP用户chao，你今天有五次查询课表的机会，\")\n",
    "        print(\"您可以选择用日期查询一天的课程，也可以用实际时间查询改日之后的课程\")\n",
    "\n",
    "    #课程表系统\n",
    "\n",
    "    import datetime\n",
    "\n",
    "    if username == user_date:\n",
    "        count = 3\n",
    "        while True:\n",
    "            count -= 1\n",
    "            print(\"选择日期查询填Y，选择实际时间查询填N\")\n",
    "            qwer = input(\"请选择：\")\n",
    "            if qwer == 'Y':\n",
    "                aList = '2021'\n",
    "                bList = input(\"请输入月份:\")\n",
    "                cList = input(\"请输入日期：\")\n",
    "                date_one = aList + bList + cList\n",
    "                week = datetime.datetime.strptime(date_one,\"%Y%m%d\").weekday() + 1\n",
    "\n",
    "                what_day = int(week)\n",
    "                if what_day == 1:\n",
    "                    print(\"唉，就是没课\")\n",
    "                if what_day == 2:\n",
    "                    print(\"早上8:00-10:25 用户研究 @3实312\")\n",
    "                    print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                if what_day == 3:\n",
    "                    print(\"早上8:00-9:30 毛概实践 @9-207\")\n",
    "                    print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                    print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                if what_day == 4:\n",
    "                    print(\"早上9:45-12:00 Python @新综合楼612\")\n",
    "                    print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                if what_day == 5:\n",
    "                    print(\"早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                    print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                weekend = ['6', '7']\n",
    "                if what_day in weekend:\n",
    "                    print(\"Python and CSGO GO GO\")\n",
    "                if count == 0:\n",
    "                    print(\"您今天的次数已用完\")\n",
    "                    break\n",
    "\n",
    "    if username == user_date_vip:\n",
    "        count = 5\n",
    "        while True:\n",
    "            count -= 1\n",
    "            print(\"选择日期查询填1，选择实际时间查询填2\")\n",
    "            qwer = input(\"请选择：\")\n",
    "            if qwer == 1:\n",
    "                aList = '2021'\n",
    "                bList = input(\"请输入月份:\")\n",
    "                cList = input(\"请输入日期：\")\n",
    "                date_one = aList + bList + cList\n",
    "                week = datetime.datetime.strptime(date_one,\"%Y%m%d\").weekday() + 1\n",
    "\n",
    "                what_day = int(week)\n",
    "                if what_day == 1:\n",
    "                    print(\"唉，就是没课\")\n",
    "                if what_day == 2:\n",
    "                    print(\"早上8:00-10:25 用户研究 @3实312\")\n",
    "                    print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                if what_day == 3:\n",
    "                    print(\"早上8:00-9:30 毛概实践 @9-207\")\n",
    "                    print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                    print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                if what_day == 4:\n",
    "                    print(\"早上9:45-12:00 Python @新综合楼612\")\n",
    "                    print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                if what_day == 5:\n",
    "                    print(\"早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                    print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                weekend = ['6', '7']\n",
    "                if what_day in weekend:\n",
    "                    print(\"Python and CSGO GO GO\")\n",
    "                if count == 0:\n",
    "                    print(\"您今天的次数已用完\")\n",
    "                    break\n",
    "'''"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "b122e1eb",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "请输入你的账号：chao\n",
      "请输入你的密码：112233\n",
      "您输入的账号或者密码不正确，请重新输入，您还有 2 次机会\n",
      "请输入你的账号：chao123456\n",
      "请输入你的密码：q\n",
      "您输入的账号或者密码不正确，请重新输入，您还有 1 次机会\n",
      "请输入你的账号：chao\n",
      "请输入你的密码：123456\n",
      "欢迎尊贵的vip用户 chao 登录系统使用~\n",
      "\n",
      "尊贵的VIP用户chao，你今天有五次查询课表的机会，\n",
      "您可以选择用日期查询一天的课程，也可以用实际时间查询改日之后的课程\n"
     ]
    }
   ],
   "source": [
    "#课程表实验2\n",
    "\n",
    "\n",
    "# Author:Shaojun\n",
    "# Time：0924\n",
    "\n",
    "\n",
    "# 登录系统\n",
    "user_date = \"junk\"\n",
    "user_date_vip = \"chao\"\n",
    "password_date = \"112233\"\n",
    "password_date_vip = \"123456\"\n",
    "\n",
    "count = 3\n",
    "while True:\n",
    "    count -= 1\n",
    "    username = input(\"请输入你的账号：\")\n",
    "    password = input(\"请输入你的密码：\")\n",
    "\n",
    "    if username == user_date or user_date_vip:\n",
    "        if username == user_date:\n",
    "            if password == password_date:\n",
    "                print(\"欢迎普通用户\", username, \"登录系统使用~\")\n",
    "                break\n",
    "            else:\n",
    "                if count == 0:\n",
    "                    print(\"您多次输入错误密码，请5分钟后再重试\")\n",
    "                    break\n",
    "                else:\n",
    "                    print(\"您输入的账号或者密码不正确，请重新输入，您还有\", count, \"次机会\")\n",
    "\n",
    "        if username == user_date_vip:\n",
    "            if password == password_date_vip:\n",
    "                print(\"欢迎尊贵的vip用户\", username, \"登录系统使用~\")\n",
    "                break\n",
    "            else:\n",
    "                if count == 0:\n",
    "                    print(\"您多次输入错误密码，请5分钟后再重试\")\n",
    "                    break\n",
    "                else:\n",
    "                    print(\"您输入的账号或者密码不正确，请重新输入，您还有\", count, \"次机会\")\n",
    "\n",
    "        else:\n",
    "            if count == 0:\n",
    "                print(\"您多次输入错误密码，请5分钟后再重试\")\n",
    "                break\n",
    "            else:\n",
    "                print(\"您输入的账号或者密码不正确，请重新输入，您还有\", count, \"次机会\")\n",
    "\n",
    "if username == user_date:\n",
    "    if password == password_date:\n",
    "        print()\n",
    "        print(\"普通用户junk，你今天有三次查询课表的机会\")\n",
    "        print(\"您可以选择用日期查询一天的课程，也可以用实际时间查询该日之后的课程\")\n",
    "\n",
    "        # 课程表系统\n",
    "\n",
    "        import datetime\n",
    "\n",
    "        if username == user_date:\n",
    "            count = 3\n",
    "            while True:\n",
    "                count -= 1\n",
    "                print(\"选择日期查询填Y，选择实际时间查询填N\")\n",
    "                qwer = input(\"请选择：\")\n",
    "                if qwer == 'Y':\n",
    "                    aList = '2021'\n",
    "                    bList = input(\"请输入月份:\")\n",
    "                    cList = input(\"请输入日期：\")\n",
    "                    date_one = aList + bList + cList\n",
    "                    week = datetime.datetime.strptime(date_one, \"%Y%m%d\").weekday() + 1\n",
    "\n",
    "                    what_day = int(week)\n",
    "                    if what_day == 1:\n",
    "                        print(\"唉，就是没课\")\n",
    "                    if what_day == 2:\n",
    "                        print(\"早上8:00-10:25 用户研究 @3实312\")\n",
    "                        print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                    if what_day == 3:\n",
    "                        print(\"早上8:00-9:30 毛概实践 @9-207\")\n",
    "                        print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                        print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                    if what_day == 4:\n",
    "                        print(\"早上9:45-12:00 Python @新综合楼612\")\n",
    "                        print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                    if what_day == 5:\n",
    "                        print(\"早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                        print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                    weekend = ['6', '7']\n",
    "                    if what_day in weekend:\n",
    "                        print(\"Python and CSGO GO GO\")\n",
    "                if qwer == 'N':\n",
    "                    aList = '2021'\n",
    "                    bList = input(\"请输入月份:\")\n",
    "                    cList = input(\"请输入日期：\")\n",
    "                    dList = input(\"请输入时：\")\n",
    "                    eList = input(\"请输入分：\")\n",
    "                    date_one = aList + bList + cList\n",
    "                    time_info = datetime.time(int(dList), int(eList), 00)\n",
    "                    print(time_info)\n",
    "                    week = datetime.datetime.strptime(date_one, \"%Y%m%d\").weekday() + 1\n",
    "\n",
    "                    what_day = int(week)\n",
    "                    if what_day == 1:\n",
    "                        print(\"唉，就是没课\")\n",
    "\n",
    "                    what_day = int(week)\n",
    "                    if what_day == 2:\n",
    "                        ass = ['0:00:00-8:00:00']\n",
    "                        bss = ['8:00:00-10:25:00']\n",
    "                        css = ['10:25:00-14:30:00']\n",
    "                        dss = ['14:30:00-15:55:00']\n",
    "                        ess = ['15:55:00-23:59:00']\n",
    "                        fss = ['7:30:00']\n",
    "                        gss = ['14:00:00']\n",
    "                        if time_info in ass:\n",
    "                            print(\"今天早上8:00-10:25 用户研究 @3实312\")\n",
    "                            print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                        if time_info in bss:\n",
    "                            print(\"正在上用户研究，别睡了！\")\n",
    "                        if time_info in css:\n",
    "                            print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                        if time_info in dss:\n",
    "                            print(\"正在上新闻评论，听课啦！\")\n",
    "                        if time_info in ess:\n",
    "                            print(\"明天早上8:00-9:30 毛概实践 @9-207\")\n",
    "                            print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                            print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                        if time_info == fss:\n",
    "                            print(\"起床啦，还有30分钟上用户研究\")\n",
    "                        if time_info == gss:\n",
    "                            print(\"起床啦，还有30分钟上新闻评论\")\n",
    "\n",
    "                    if what_day == 3:\n",
    "                        ass = ['0:00:00-8:00:00']\n",
    "                        bss = ['8:00:00-9:30:00']\n",
    "                        css = ['9:30:00-9:45:00']\n",
    "                        dss = ['9:45:00-12:00:00']\n",
    "                        ess = ['12:00:00-18:45:00']\n",
    "                        fss = ['18:45:00-20:10:00']\n",
    "                        gss = ['20:10:00-23:59:00']\n",
    "                        hss = ['7:30:00']\n",
    "                        iss = ['9:15:00']\n",
    "                        jss = ['18:15:00']\n",
    "                        if time_info in ass:\n",
    "                            print(\"今天早上8:00-9:30 毛概实践 @9-207\")\n",
    "                            print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                            print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                        if time_info in bss:\n",
    "                            print(\"正在上毛概实践，别睡了！\")\n",
    "                        if time_info in css:\n",
    "                            print(\"待会9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                        if time_info in dss:\n",
    "                            print(\"正在上融合新闻学，听课啦！\")\n",
    "                        if time_info in ess:\n",
    "                            print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                        if time_info in fss:\n",
    "                            print(\"正在上大学英语，上完回去做作业！\")\n",
    "                        if time_info in gss:\n",
    "                            print(\"明天早上9:45-12:00 Python @新综合楼612\")\n",
    "                            print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "\n",
    "                    if what_day == 4:\n",
    "                        ass = ['0:00:00-9:45:00']\n",
    "                        bss = ['9:45:00-12:00:00']\n",
    "                        css = ['12:00:00-14:30:00']\n",
    "                        dss = ['14:30:00-16:50:00']\n",
    "                        ess = ['16:50:00-23:59:00']\n",
    "                        fss = ['9:15:00']\n",
    "                        gss = ['14:00:00']\n",
    "                        if time_info in ass:\n",
    "                            print(\"早上9:45-12:00 Python @新综合楼612\")\n",
    "                            print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                        if time_info in bss:\n",
    "                            print(\"正在上python，别睡了！\")\n",
    "                        if time_info in css:\n",
    "                            print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                        if time_info in dss:\n",
    "                            print(\"正在上毛概理论，听课啦！\")\n",
    "                        if time_info in ess:\n",
    "                            print(\"明天早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                            print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                        if time_info == fss:\n",
    "                            print(\"起床啦，还有30分钟上Python\")\n",
    "                        if time_info == gss:\n",
    "                            print(\"起床啦，还有30分钟上毛概理论\")\n",
    "\n",
    "                    if what_day == 5:\n",
    "                        ass = ['0:00:00-8:00:00']\n",
    "                        bss = ['8:00:00-9:30:00']\n",
    "                        css = ['9:30:00-10:35:00']\n",
    "                        dss = ['10:35:00-12:00:00']\n",
    "                        ess = ['12:00:00-23:59:00']\n",
    "                        fss = ['7:30:00']\n",
    "                        gss = ['10:05:00']\n",
    "                        if time_info in ass:\n",
    "                            print(\"早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                            print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                        if time_info in bss:\n",
    "                            print(\"正在上有羽毛球课，别睡了！\")\n",
    "                        if time_info in css:\n",
    "                            print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                        if time_info in dss:\n",
    "                            print(\"正在上大学英语，听课啦！\")\n",
    "                        if time_info in ess:\n",
    "                            print(\"明天周末大放假！！\")\n",
    "                        if time_info == fss:\n",
    "                            print(\"起床啦，还有30分钟上羽毛球\")\n",
    "                        if time_info == gss:\n",
    "                            print(\"起床啦，还有30分钟上大学英语\")\n",
    "\n",
    "                    weekend = ['6', '7']\n",
    "                    if what_day in weekend:\n",
    "                        print(\"Python and CSGO GO GO\")\n",
    "\n",
    "                if count == 0:\n",
    "                    print(\"您今天的次数已用完\")\n",
    "                    break\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "if username == user_date_vip:\n",
    "    if password == password_date_vip:\n",
    "        print()\n",
    "        print(\"尊贵的VIP用户chao，你今天有五次查询课表的机会，\")\n",
    "        print(\"您可以选择用日期查询一天的课程，也可以用实际时间查询改日之后的课程\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1b47779c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "请输入你的账号：junk\n",
      "请输入你的密码：112233\n",
      "欢迎普通用户 junk 登录系统使用~\n",
      "\n",
      "普通用户junk，你今天有三次查询课表的机会\n",
      "您可以选择用日期查询一天的课程，也可以用实际时间查询该日之后的课程\n",
      "选择日期查询填Y，选择实际时间查询填N\n",
      "请选择：Y\n",
      "请输入月份:12\n",
      "请输入日期：15\n",
      "早上8:00-9:30 毛概实践 @9-207\n",
      "早上9:45-12:00 融合新闻学 @新综合楼612\n",
      "晚上18:45-20:10 大学英语 @9-302\n",
      "选择日期查询填Y，选择实际时间查询填N\n"
     ]
    }
   ],
   "source": [
    "#课程表终\n",
    "\n",
    "# Author:Shaojun\n",
    "# Time：0925\n",
    "\n",
    "\n",
    "# 登录系统\n",
    "user_date = \"junk\"\n",
    "user_date_vip = \"chao\"\n",
    "password_date = \"112233\"\n",
    "password_date_vip = \"123456\"\n",
    "\n",
    "count = 3\n",
    "while True:\n",
    "    count -= 1\n",
    "    username = input(\"请输入你的账号：\")\n",
    "    password = input(\"请输入你的密码：\")\n",
    "\n",
    "    if username == user_date or user_date_vip:\n",
    "        if username == user_date:\n",
    "            if password == password_date:\n",
    "                print(\"欢迎普通用户\", username, \"登录系统使用~\")\n",
    "                break\n",
    "            else:\n",
    "                if count == 0:\n",
    "                    print(\"您多次输入错误密码，请5分钟后再重试\")\n",
    "                    break\n",
    "                else:\n",
    "                    print(\"您输入的账号或者密码不正确，请重新输入，您还有\", count, \"次机会\")\n",
    "\n",
    "        if username == user_date_vip:\n",
    "            if password == password_date_vip:\n",
    "                print(\"欢迎尊贵的vip用户\", username, \"登录系统使用~\")\n",
    "                break\n",
    "            else:\n",
    "                if count == 0:\n",
    "                    print(\"您多次输入错误密码，请5分钟后再重试\")\n",
    "                    break\n",
    "                else:\n",
    "                    print(\"您输入的账号或者密码不正确，请重新输入，您还有\", count, \"次机会\")\n",
    "\n",
    "        else:\n",
    "            if count == 0:\n",
    "                print(\"您多次输入错误密码，请5分钟后再重试\")\n",
    "                break\n",
    "            else:\n",
    "                print(\"您输入的账号或者密码不正确，请重新输入，您还有\", count, \"次机会\")\n",
    "\n",
    "if username == user_date:\n",
    "    if password == password_date:\n",
    "        print()\n",
    "        print(\"普通用户junk，你今天有三次查询课表的机会\")\n",
    "        print(\"您可以选择用日期查询一天的课程，也可以用实际时间查询该日之后的课程\")\n",
    "\n",
    "        # 课程表系统\n",
    "\n",
    "        import datetime\n",
    "\n",
    "        if username == user_date:\n",
    "            count = 3\n",
    "            while True:\n",
    "                count -= 1\n",
    "                print(\"选择日期查询填Y，选择实际时间查询填N\")\n",
    "                qwer = input(\"请选择：\")\n",
    "                if qwer == 'Y':\n",
    "                    aList = '2021'\n",
    "                    bList = input(\"请输入月份:\")\n",
    "                    cList = input(\"请输入日期：\")\n",
    "                    date_one = aList + bList + cList\n",
    "                    week = datetime.datetime.strptime(date_one, \"%Y%m%d\").weekday() + 1\n",
    "\n",
    "                    what_day = int(week)\n",
    "                    if what_day == 1:\n",
    "                        print(\"唉，就是没课\")\n",
    "                    if what_day == 2:\n",
    "                        print(\"早上8:00-10:25 用户研究 @3实312\")\n",
    "                        print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                    if what_day == 3:\n",
    "                        print(\"早上8:00-9:30 毛概实践 @9-207\")\n",
    "                        print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                        print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                    if what_day == 4:\n",
    "                        print(\"早上9:45-12:00 Python @新综合楼612\")\n",
    "                        print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                    if what_day == 5:\n",
    "                        print(\"早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                        print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                    if what_day == 6:\n",
    "                        print(\"Python and CSGO GO GO\")\n",
    "                    if what_day == 7:\n",
    "                        print(\"Python and CSGO GO GO\")\n",
    "                    if count == 0:\n",
    "                        print(\"您今天的次数已用完\")\n",
    "                        break\n",
    "\n",
    "                if qwer == 'N':\n",
    "                    aList = '2021'\n",
    "                    bList = input(\"请输入月份:\")\n",
    "                    cList = input(\"请输入日期：\")\n",
    "                    dList = input(\"请输入时：\")\n",
    "                    eList = input(\"请输入分：\")\n",
    "                    date_one = aList + bList + cList\n",
    "                    time_info = datetime.time(int(dList), int(eList), 00)\n",
    "                    print(time_info)\n",
    "                    week = datetime.datetime.strptime(date_one, \"%Y%m%d\").weekday() + 1\n",
    "\n",
    "                    what_day = int(week)\n",
    "                    if what_day == 1:\n",
    "                        print(\"唉，就是没课\")\n",
    "                    if what_day == 2:\n",
    "                        ass = datetime.time(00, 00, 00)\n",
    "                        bss = datetime.time(8, 00, 00)\n",
    "                        css = datetime.time(10, 25, 00)\n",
    "                        dss = datetime.time(14, 30, 00)\n",
    "                        ess = datetime.time(15, 55, 00)\n",
    "                        fss = datetime.time(23, 59, 00)\n",
    "                        if ass < time_info < bss:\n",
    "                            print(\"今天早上8:00-10:25 用户研究 @3实312\")\n",
    "                            print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                        if bss < time_info < css:\n",
    "                            print(\"正在上用户研究，别睡了！\")\n",
    "                        if css < time_info < dss:\n",
    "                            print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                        if dss < time_info < ess:\n",
    "                            print(\"正在上新闻评论，听课啦！\")\n",
    "                        if ess < time_info < fss:\n",
    "                            print(\"明天早上8:00-9:30 毛概实践 @9-207\")\n",
    "                            print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                            print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "\n",
    "                    if what_day == 3:\n",
    "                        ass = datetime.time(00, 00, 00)\n",
    "                        bss = datetime.time(8, 00, 00)\n",
    "                        css = datetime.time(9, 30, 00)\n",
    "                        dss = datetime.time(9, 45, 00)\n",
    "                        ess = datetime.time(12, 00, 00)\n",
    "                        fss = datetime.time(18, 45, 00)\n",
    "                        gss = datetime.time(20, 10, 00)\n",
    "                        hss = datetime.time(23, 59, 00)\n",
    "                        if ass < time_info < bss:\n",
    "                            print(\"今天早上8:00-9:30 毛概实践 @9-207\")\n",
    "                            print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                            print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                        if bss < time_info < css:\n",
    "                            print(\"正在上毛概实践，别睡了！\")\n",
    "                        if css < time_info < dss:\n",
    "                            print(\"待会9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                        if dss < time_info < ess:\n",
    "                            print(\"正在上融合新闻学，听课啦！\")\n",
    "                        if ess < time_info < fss:\n",
    "                            print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                        if fss < time_info < gss:\n",
    "                            print(\"正在上大学英语，上完回去做作业！\")\n",
    "                            print(\"明天早上9:45-12:00 Python @新综合楼612\")\n",
    "                            print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "\n",
    "                    if what_day == 4:\n",
    "                        ass = datetime.time(00, 00, 00)\n",
    "                        bss = datetime.time(9, 45, 00)\n",
    "                        css = datetime.time(12, 00, 00)\n",
    "                        dss = datetime.time(14, 30, 00)\n",
    "                        ess = datetime.time(16, 50, 00)\n",
    "                        fss = datetime.time(23, 59, 00)\n",
    "                        if ass < time_info < bss:\n",
    "                            print(\"早上9:45-12:00 Python @新综合楼612\")\n",
    "                            print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                        if bss < time_info < css:\n",
    "                            print(\"正在上python，别睡了！\")\n",
    "                        if css < time_info < dss:\n",
    "                            print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                        if dss < time_info < ess:\n",
    "                            print(\"正在上毛概理论，听课啦！\")\n",
    "                        if ess < time_info < fss:\n",
    "                            print(\"明天早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                            print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                    if what_day == 5:\n",
    "                        ass = datetime.time(00, 00, 00)\n",
    "                        bss = datetime.time(8, 00, 00)\n",
    "                        css = datetime.time(9, 30, 00)\n",
    "                        dss = datetime.time(10, 35, 00)\n",
    "                        ess = datetime.time(12, 00, 00)\n",
    "                        fss = datetime.time(12, 00, 00)\n",
    "                        if ass < time_info < bss:\n",
    "                            print(\"早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                            print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                        if bss < time_info < css:\n",
    "                            print(\"正在上有羽毛球课，别睡了！\")\n",
    "                        if css < time_info < dss:\n",
    "                            print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                        if dss < time_info < ess:\n",
    "                            print(\"正在上大学英语，听课啦！\")\n",
    "                        if ess < time_info < fss:\n",
    "                            print(\"明天周末大放假！！\")\n",
    "\n",
    "                if count == 0:\n",
    "                    print(\"您今天的次数已用完\")\n",
    "                    break\n",
    "\n",
    "if username == user_date_vip:\n",
    "    if password == password_date_vip:\n",
    "        print()\n",
    "        print(\"VIP用户junk，你今天有五次查询课表的机会\")\n",
    "        print(\"您可以选择用日期查询一天的课程，也可以用实际时间查询该日之后的课程 \")\n",
    "\n",
    "        # 课程表系统\n",
    "\n",
    "        import datetime\n",
    "\n",
    "        if username == user_date_vip:\n",
    "            count = 5\n",
    "            while True:\n",
    "                count -= 1\n",
    "                print(\"选择日期查询填Y，选择实际时间查询填N\")\n",
    "                qwer = input(\"请选择：\")\n",
    "                if qwer == 'Y':\n",
    "                    aList = '2021'\n",
    "                    bList = input(\"请输入月份:\")\n",
    "                    cList = input(\"请输入日期：\")\n",
    "                    date_one = aList + bList + cList\n",
    "                    week = datetime.datetime.strptime(date_one, \"%Y%m%d\").weekday() + 1\n",
    "\n",
    "                    what_day = int(week)\n",
    "                    if what_day == 1:\n",
    "                        print(\"唉，就是没课\")\n",
    "                    if what_day == 2:\n",
    "                        print(\"早上8:00-10:25 用户研究 @3实312\")\n",
    "                        print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                    if what_day == 3:\n",
    "                        print(\"早上8:00-9:30 毛概实践 @9-207\")\n",
    "                        print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                        print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                    if what_day == 4:\n",
    "                        print(\"早上9:45-12:00 Python @新综合楼612\")\n",
    "                        print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                    if what_day == 5:\n",
    "                        print(\"早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                        print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                    if what_day == 6:\n",
    "                        print(\"Python and CSGO GO GO\")\n",
    "                    if what_day == 7:\n",
    "                        print(\"Python and CSGO GO GO\")\n",
    "                    if count == 0:\n",
    "                        print(\"您今天的次数已用完\")\n",
    "                        break\n",
    "\n",
    "                if qwer == 'N':\n",
    "                    aList = '2021'\n",
    "                    bList = input(\"请输入月份:\")\n",
    "                    cList = input(\"请输入日期：\")\n",
    "                    dList = input(\"请输入时：\")\n",
    "                    eList = input(\"请输入分：\")\n",
    "                    date_one = aList + bList + cList\n",
    "                    time_info = datetime.time(int(dList), int(eList), 00)\n",
    "                    print(time_info)\n",
    "                    week = datetime.datetime.strptime(date_one, \"%Y%m%d\").weekday() + 1\n",
    "\n",
    "                    what_day = int(week)\n",
    "                    if what_day == 1:\n",
    "                        print(\"唉，就是没课\")\n",
    "                    if what_day == 2:\n",
    "                        ass = datetime.time(00, 00, 00)\n",
    "                        bss = datetime.time(8, 00, 00)\n",
    "                        css = datetime.time(10, 25, 00)\n",
    "                        dss = datetime.time(14, 30, 00)\n",
    "                        ess = datetime.time(15, 55, 00)\n",
    "                        fss = datetime.time(23, 59, 00)\n",
    "                        if ass < time_info < bss:\n",
    "                            print(\"今天早上8:00-10:25 用户研究 @3实312\")\n",
    "                            print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                        if bss < time_info < css:\n",
    "                            print(\"正在上用户研究，别睡了！\")\n",
    "                        if css < time_info < dss:\n",
    "                            print(\"下午14:30-15:55 新闻评论 @3实206\")\n",
    "                        if dss < time_info < ess:\n",
    "                            print(\"正在上新闻评论，听课啦！\")\n",
    "                        if ess < time_info < fss:\n",
    "                            print(\"明天早上8:00-9:30 毛概实践 @9-207\")\n",
    "                            print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                            print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "\n",
    "                    if what_day == 3:\n",
    "                        ass = datetime.time(00, 00, 00)\n",
    "                        bss = datetime.time(8, 00, 00)\n",
    "                        css = datetime.time(9, 30, 00)\n",
    "                        dss = datetime.time(9, 45, 00)\n",
    "                        ess = datetime.time(12, 00, 00)\n",
    "                        fss = datetime.time(18, 45, 00)\n",
    "                        gss = datetime.time(20, 10, 00)\n",
    "                        hss = datetime.time(23, 59, 00)\n",
    "                        if ass < time_info < bss:\n",
    "                            print(\"今天早上8:00-9:30 毛概实践 @9-207\")\n",
    "                            print(\"早上9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                            print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                        if bss < time_info < css:\n",
    "                            print(\"正在上毛概实践，别睡了！\")\n",
    "                        if css < time_info < dss:\n",
    "                            print(\"待会9:45-12:00 融合新闻学 @新综合楼612\")\n",
    "                        if dss < time_info < ess:\n",
    "                            print(\"正在上融合新闻学，听课啦！\")\n",
    "                        if ess < time_info < fss:\n",
    "                            print(\"晚上18:45-20:10 大学英语 @9-302\")\n",
    "                        if fss < time_info < gss:\n",
    "                            print(\"正在上大学英语，上完回去做作业！\")\n",
    "                            print(\"明天早上9:45-12:00 Python @新综合楼612\")\n",
    "                            print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "\n",
    "                    if what_day == 4:\n",
    "                        ass = datetime.time(00, 00, 00)\n",
    "                        bss = datetime.time(9, 45, 00)\n",
    "                        css = datetime.time(12, 00, 00)\n",
    "                        dss = datetime.time(14, 30, 00)\n",
    "                        ess = datetime.time(16, 50, 00)\n",
    "                        fss = datetime.time(23, 59, 00)\n",
    "                        if ass < time_info < bss:\n",
    "                            print(\"早上9:45-12:00 Python @新综合楼612\")\n",
    "                            print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                        if bss < time_info < css:\n",
    "                            print(\"正在上python，别睡了！\")\n",
    "                        if css < time_info < dss:\n",
    "                            print(\"下午14:30-16:45 毛概理论 @9-207\")\n",
    "                        if dss < time_info < ess:\n",
    "                            print(\"正在上毛概理论，听课啦！\")\n",
    "                        if ess < time_info < fss:\n",
    "                            print(\"明天早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                            print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                    if what_day == 5:\n",
    "                        ass = datetime.time(00, 00, 00)\n",
    "                        bss = datetime.time(8, 00, 00)\n",
    "                        css = datetime.time(9, 30, 00)\n",
    "                        dss = datetime.time(10, 35, 00)\n",
    "                        ess = datetime.time(12, 00, 00)\n",
    "                        fss = datetime.time(12, 00, 00)\n",
    "                        if ass < time_info < bss:\n",
    "                            print(\"早上8:00-9:30 羽毛球 @东区体育馆\")\n",
    "                            print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                        if bss < time_info < css:\n",
    "                            print(\"正在上有羽毛球课，别睡了！\")\n",
    "                        if css < time_info < dss:\n",
    "                            print(\"早上10:35-12:00 大学英语 @9-302\")\n",
    "                        if dss < time_info < ess:\n",
    "                            print(\"正在上大学英语，听课啦！\")\n",
    "                        if ess < time_info < fss:\n",
    "                            print(\"明天周末大放假！！\")\n",
    "                    if what_day == 6:\n",
    "                        print(\"Python and CSGO GO GO\")\n",
    "                    if what_day == 7:\n",
    "                        print(\"Python and CSGO GO GO\")\n",
    "\n",
    "                if count == 0:\n",
    "                    print(\"您今天的次数已用完\")\n",
    "                    break"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "87479e4f",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
